From 6a06e4b5db895c12084e47f42a264cd8f9c51f25 Mon Sep 17 00:00:00 2001
From: Miqdad <ahmadmiqdad27@gmail.com>
Date: Tue, 18 Nov 2025 15:25:27 +0700
Subject: <MIqdad> safe canonical brand

---
 src/pages/shop/brands/[slug].jsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/pages/shop/brands/[slug].jsx')

diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx
index c5b3eaac..f577e2c0 100644
--- a/src/pages/shop/brands/[slug].jsx
+++ b/src/pages/shop/brands/[slug].jsx
@@ -47,7 +47,10 @@ export default function BrandDetail() {
             content: `Jual ${brandName}, beli ${brandName}, Distributor ${brandName} Indonesia, cari ${brandName}, produk ${brandName}, ${brandName} Indonesia, harga ${brandName}`,
           },
         ]}
-        canonical={`${process.env.NEXT_PUBLIC_SELF_HOST}/shop/brands/${slug}`}
+        // canonical={`${process.env.NEXT_PUBLIC_SELF_HOST}/shop/brands/${slug}`}
+        canonical={`${process.env.NEXT_PUBLIC_SELF_HOST}${
+          router.asPath.split('?')[0]
+        }`}
       />
 
       <Breadcrumb brandName={brandName} />
-- 
cgit v1.2.3

